//
//  DeviceSectionView.swift
//  CleanMan
//
//  Created by whale on 2022/9/12.
//

import UIKit

class DeviceSectionView: GroupedListSectionView {

    override var md: Any? {
        didSet {
            guard let str = md as? String else { return }
            lbl.text = str
        }
    }
    
    override func _initUI() {
        backgroundColor = .white
        addSubview(lbl)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        lbl.frame = CGRect(x: 16.adapter, y: 0, width: bounds.width-32.adapter, height: bounds.height)
    }
    
    private lazy var lbl: UILabel = {
        let lbl = UILabel()
        lbl.textColor = .hex(0x333333)
        lbl.font = .font(14)
        return lbl
    }()

}
